package com.winning.pmph.entity;

import com.alibaba.fastjson.JSONArray;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.apache.poi.ss.formula.functions.T;

import javax.persistence.Table;
import java.util.List;
import java.util.Map;
import java.util.Set;

@Data
@Table(name = "KNOWLEDGE_LIB")
public class KnowledgeLib extends BaseEntity {
    private static final long serialVersionUID = 1L;

    // 计算器库id;
    public final static String CALCULATOR_LIB_ID = "calculator_lib_id";
    // 流程图库id;
    public final static String FLOW_CHART_LIB_ID = "flow_chart_lib_id";
    // 图书库ID
    public final static String BOOK_LIB_ID = "book_lib_id";

    /**
     * 术语库ID
     */
    public final static String TERM_LIB_ID = "term_lib_id";
    
    public final static String INCREASE_LIB_ID = "increasebook_lib_id";

    @TableId
    private String id;
    /**
     * 知识库名称
     */
    private String name;

    @TableField(exist = false)
    private Map<String, KnowledgeLibField> fieldMap;
    @TableField(exist = false)
    private List<KnowledgeLibField> fieldList;
    @TableField(exist = false)
    private JSONArray knowledgeLibIdList;
    @TableField(exist = false)
    private Set<SpecialtyKnowledgeLib> specialtySet;

    @TableField(exist = false)
    private JSONArray platformIdArray;
    @TableField(exist = false)
    private List<Platform> platformList;
    @TableField(exist = false)
    private String specialtyId;
    @TableField(exist = false)
    private Integer waitToPublishTaskItemCount;
    @TableField(exist = false)
    private Boolean isToPlatform;
    @TableField(exist = false)
    private Boolean editFlag;
    @TableField(exist = false)
    private Boolean pushFlag;
}
